<meta meta="注册配置" args="data"/>
<style>

</style>
<form class="form-horizontal" id="form" s="form,datac,nda,valid" s-data="data" style="width: 600px;">
    <div class="form-group">
        <label class="col-sm-3 control-label">开启邀请注册</label>
        <div class="col-sm-9">
            <select name="useInvitationCheck" class="form-control">
                <option value="true">是</option>
                <option value="false">否</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">默认邀请码</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="text" class="form-control" placeholder="默认邀请码" name="defaultInvitationCode"
                   s-valid-error="require()"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">邀请码有效期（天数）</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="1" class="form-control" name="invitationValidDays" placeholder="邀请码有效期（天数）"
                   s-valid-error="require(),min(1)"/>
        </div>
    </div>
</form>
<script type="text/javascript">
    S.getContent = function () {
        var deferred = $.Deferred();
        $form.validate().done(function() {
            deferred.resolve(Smart.serializeToObject($form.node))
        })
        return deferred;
    }
</script>